import { IPSAppPortalView } from './ipsapp-portal-view';
import { PSAppViewImpl } from './psapp-view-impl';

export class PSAppPortalViewImpl extends PSAppViewImpl implements IPSAppPortalView {
  get defaultPage(): boolean {
    return this.M.defaultPage != null ? this.M.defaultPage : false;
  }

  get enableDP(): boolean {
    return this.M.enableDP;
  }

  get enablePullDownRefresh(): boolean {
    return this.M.enablePullDownRefresh;
  }

  get enableWF(): boolean {
    return this.M.enableWF != null ? this.M.enableWF : false;
  }

  get cls(): string {
    return 'PSAppPortalViewImpl';
  }

  instanceof(cls: string): boolean {
    if (cls == 'app.view.IPSAppMobView' || cls == 'app.view.IPSAppPortalView') return true;
    return super.instanceof(cls);
  }
}
